<?php

	/**********************************************
	 		UDA : Register user
	 		
	 		auteur : Pierre Raynaud
	 		date : 20/08/2009
	 *********************************************/

	function UDA_Register_init() {
		
			global $CONFIG;
			register_translations($CONFIG->pluginspath . "UDA_Register/languages/");

			set_view_location("account/forms/register",$CONFIG->pluginspath."UDA_Register/views/");
			
			register_action("register",false,$CONFIG->pluginspath."UDA_Register/actions/register.php");
			register_action("login",false,$CONFIG->pluginspath."UDA_Register/actions/login.php");
			
			$GLOBALS['UDA_JS'][] = $CONFIG->wwwroot."mod/UDA_Register/js/jquery.pwdst.js";
			$GLOBALS['UDA_JS'][] = $CONFIG->wwwroot."mod/UDA_Register/js/UDA_Register.js";
	}
	
	register_elgg_event_handler('init','system','UDA_Register_init');

?>